<h2 class="page-heading">
  <span class="page-heading-icon"><i class="fa fa-user"></i></span>
  <a href="{{{user.userPageUrl}}}" class="user-name">{{user.name}}</a>
  {{#user.roleName}}<span class="label label-inverse">{{user.roleName}}</span>{{/user.roleName}}
</h2>

<nav class="navbar navbar-default navbar-static-top" role="navigation">
  <div class="navbar-header">
    <button type="button" data-toggle="collapse" data-target="#content-navbar" class="navbar-toggle"><i class="fa fa-bars"></i></button>
  </div>
  <div class="navbar-collapse collapse in" id="content-navbar">
    <ul class="nav navbar-nav">
      <li class="{{#isUserPage}}active{{/isUserPage}}"><a href="{{{user.userPageUrl}}}">用户信息</a></li>
      <li class="{{#isUserScriptListPage}}active{{/isUserScriptListPage}}"><a href="{{{user.userScriptListPageUrl}}}" class="{{^user.userScriptListPageUrl}}disabled{{/user.userScriptListPageUrl}}">脚本数 <span class="badge">{{scriptListCount}}</span></a></li>
      <li class="{{#isUserCommentListPage}}active{{/isUserCommentListPage}}"><a href="{{{user.userCommentListPageUrl}}}" class="{{^user.userCommentListPageUrl}}disabled{{/user.userCommentListPageUrl}}">评论数 <span class="badge">{{commentListCount}}</span></a></li>
    </ul>
  </div>
</nav>
